//
//  CommitFilesTableView.swift
//  GitTFGUI
//
//  Created by Samuel Richard Magny on 2015-09-07.
//  Copyright (c) 2015 Samuel Richard Magny. All rights reserved.
//

import Cocoa

class FilesTableView: NSTableView {

    static let CheckColumnIdentifier = "CheckColumnIdentifier"
    static let StatusColumnIdentifier = "StatusColumnIdentifier"
    static let FileNameColumnIdentifier = "FileNameColumnIdentifier"
    static let FilePathColumnIdentifier = "FilePathColumnIdentifier"
    
    var tfsClient:ExtendedTFSClient? = nil
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
        
        self.allowsMultipleSelection = false
        
    }
    
    override func selectAll(sender: AnyObject?) {
        
        let source = self.dataSource() as! FilesTableViewDataSource
        source.selectAllRows(self)
    }

    override func selectColumnIndexes(indexes: NSIndexSet, byExtendingSelection extend: Bool) {
        
        if(indexes.containsIndex(0))
        {
            selectAll(self)
        }

    }

//    override func 
}
